﻿///****** Dossier.cs *******//
/// auteur: Amor REBHI
/// Principe: Gere les dossier de la mediatheque
/// *****************************//

using MyVideoManager.DataModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Runtime.Serialization;


namespace MyVideoManager.DataModel
{
    [KnownType(typeof(Dossier))]
    [DataContractAttribute]
    class Dossier
    {
        [DataMember()]
        private List<Film> lstFilm;

        [DataMember()]
        private int idDossier;

        [DataMember()]
        private string nomDossier;

        [DataMember()]
        private string cheminDossier;

        [DataMember()]
        private string idPeripherique;

        public Dossier()
        {
            this.lstFilm = new List<Film>();
        }

        public Dossier(String path)
        {
            cheminDossier = path;
            this.lstFilm = new List<Film>();


            //this.lstFilm.Add(new Film("Aladin"));

        }

        //Getter & Setter
        public void addFilm(String film)
        {
            this.lstFilm.Add(new Film(film));
        }
    }
}
